<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>商城管理系统</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/plugins/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/plugins/font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/plugins/datepicker/datepicker3.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/style.css">
</head>

<div class="hold-transition skin-purple sidebar-mini">

    <%@include file="header.jsp"%>

    <%@include file="aside.jsp"%>

    <div class="content-wrapper">
        <section class="content-header">
            <h1>用户管理
                <small>用户表单</small>
            </h1>
            <ol class="breadcrumb">
                <li>
                    <a href="${pageContext.request.contextPath}/pages/manage/main.jsp">
                        <i class="fa fa-dashboard"></i>首页
                    </a>
                </li>
                <li>
                    <a href="${pageContext.request.contextPath}/user/searchuser">
                        用户管理
                    </a>
                </li>
                <li class="active">用户表单</li>
            </ol>
        </section>

        <form action="${pageContext.request.contextPath}/user/adduser" method="post">
            <section class="content">
                <div class="panel panel-default">
                    <div class="page-header">用户信息</div>
                    <div class="row data-type">
                        <div class="col-md-2 title">用户名</div>
                        <div class="col-md-4 data">
                            <input type="text" class="form-control" name="user_Name" placeholder="用户名">
                        </div>
                        <div class="col-md-2 title">密码</div>
                        <div class="col-md-4 data">
                            <input type="text" class="form-control" name="user_Password" placeholder="密码">
                        </div>
                        <div class="col-md-2 title">昵称</div>
                        <div class="col-md-4 data">
                            <input type="text" class="form-control" name="user_Nickname" placeholder="昵称">
                        </div>
                        <div class="col-md-2 title">性别</div>
                        <div class="col-md-4 data">
                            <input type="text" class="form-control" name="user_Sex" placeholder="性别">
                        </div>
                        <div class="col-md-2 title">出生日期</div>
                        <div class="col-md-4 data">
                            <div class="input-group date">
                                <div class="input-group-addon">
                                    <i class="fa fa-calendar"></i>
                                </div>
                                <input type="text" class="form-control pull-right" id="datepicker-a3" name="user_Birthday">
                            </div>
                        </div>
                        <div class="col-md-2 title">电子邮箱</div>
                        <div class="col-md-4 data">
                            <input type="text" class="form-control" name="user_Email" placeholder="电子邮箱">
                        </div>
                        <div class="col-md-2 title">联系方式</div>
                        <div class="col-md-4 data">
                            <input type="text" class="form-control" name="user_Mobile" placeholder="联系方式">
                        </div>
                        <div class="col-md-2 title">家庭住址</div>
                        <div class="col-md-4 data">
                            <input type="text" class="form-control" name="user_Address" placeholder="家庭住址">
                        </div>

                    </div>
                </div>

                <div class="box-tools text-center">
                    <button type="submit" class="btn bg-maroon">保存</button>
                    <button type="button" class="btn bg-default" onclick="location.href='${pageContext.request.contextPath}/user/searchuser'">返回</button>
                </div>
            </section>
        </form>
    </div>
</div>
<script src="${pageContext.request.contextPath}/plugins/jQuery/jquery-2.2.3.min.js"></script>
<script src="${pageContext.request.contextPath}/plugins/jQueryUI/jquery-ui.min.js"></script>
<script src="${pageContext.request.contextPath}/plugins/datepicker/bootstrap-datepicker.js"></script>
<script src="${pageContext.request.contextPath}/plugins/datepicker/locales/bootstrap-datepicker.zh-CN.js"></script>
<script src="${pageContext.request.contextPath}/plugins/adminLTE/js/app.min.js"></script>
<script>
    // 设置激活菜单
    function setSidebarActive(tagUri) {
        var liObj = $("#" + tagUri);
        if (liObj.length > 0) {
            liObj.parent().parent().addClass("active");
            liObj.addClass("active");
        }
    }


    $(document).ready(function() {
        $('#datepicker-a3').datepicker({
            autoclose: true,
            language: 'zh-CN'
        });
    });


    $(document).ready(function() {
        $('#datepicker-a6').datepicker({
            autoclose: true,
            language: 'zh-CN'
        });
    });


    $(document).ready(function() {
        // 激活导航位置
        setSidebarActive("user-setting");
    });
</script>
</body>

</html>


